package com.antler.smt.admin.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 资源配置
 *
 * @author vic
 * @date 2017-09-28 18:10
 */
@Component
@ConfigurationProperties(prefix = "custom.resource")
public class ResourceConfig {
    /**
     * 权限redis是否开启
     */
    private boolean shiroRedisOpen;

    /**
     * 异常告警邮件
     */
    private String alarmMail;

    public boolean isShiroRedisOpen() {
        return shiroRedisOpen;
    }

    public void setShiroRedisOpen(boolean shiroRedisOpen) {
        this.shiroRedisOpen = shiroRedisOpen;
    }

    public String getAlarmMail() {
        return alarmMail;
    }

    public void setAlarmMail(String alarmMail) {
        this.alarmMail = alarmMail;
    }
}
